#!/bin/bash

install_gcc_software_support_list=("KML" "KUPL" "HMPI" "KULITHO")
install_gcc_options=("[v]" "[v]" "[v]" "[x]")
install_gcc_description=(
"Kunpeng Math Library (GCC compiled)"
"Kunpeng Unified Parallel Library (GCC compiled)"
"Hyper Message Passing Interface (GCC compiled)"
"Kunpeng Lithography (GCC compiled)")

install_gcc_prompt() {
    logInfo "Start installing GCC Compiled Component..."
    logInfo "Please Enter (1-$1) to switch component selection, only checked component(s) will be installed."
    logInfo "Enter 'q' to quit, 'y' or enter to confirm component installation."
}

toggle_install_gcc_option() {
    local index=$1
    if [ "${install_gcc_options[index]}" == "[v]" ]; then
        install_gcc_options[index]="[x]"
    else
        install_gcc_options[index]="[v]"
    fi
}
